/* @(#)GSOrganizationBean.java    
 *
 * Project: BUS
 *
 * Modify Information:
 * =============================================================================
 *   Author       Date       Description
 *   ------------ ---------- ---------------------------------------------------
 *   Jenny Li     2006-2-9    建立
 *
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 * 
 */
package com.hitrust.gs.bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;

/**
 * @author hitrust
 *
 */
public class GSOrganizationBean implements GSBaseBean {
    /**
     * 组织机构编号
     */
	private String gs_org_id;
	/**
     * 组织机构名称
	 */
    private String gs_org_name;
	/**
     * 组织机构地址
	 */
    private String gs_org_addr;
	/**
     * 组织机构邮编
	 */
    private String gs_org_post = "";
	/**
     * 组织机构电话
	 */
    private String gs_org_phone;
	/**
     * 组织机构传真
	 */
    private String gs_org_fax = "";
	/**
     * 负责人姓名
	 */
    private String gs_principal_name;
	/**
     * 负责人电话
	 */
    private String gs_principal_phone;
	/**
     * 负责人电子邮件
	 */
    private String gs_principal_email = "";
	/**
     * 上级组织机构编号
	 */
    private String gs_upper_orgId = "";
    /*
     *  是否为订货单位
     */
    private String gs_is_stock;

	public Object process(ResultSet aResultSet) throws SQLException {
		GSOrganizationBean tGSOrganization = new GSOrganizationBean();
		tGSOrganization.gs_org_id = aResultSet.getString("code").trim();
		tGSOrganization.gs_org_name = aResultSet.getString("name").trim();
		tGSOrganization.gs_org_addr = aResultSet.getString("address")==null?"":aResultSet.getString("address").trim();
		tGSOrganization.gs_org_phone = aResultSet.getString("CONTACK_TEL") == null?"":aResultSet.getString("CONTACK_TEL").trim();
		//tGSOrganization.gs_org_fax = aResultSet.getString("GS_ORG_FAX") == null? "":aResultSet.getString("GS_ORG_FAX").trim();
		tGSOrganization.gs_principal_name = aResultSet.getString("CONTACT_PERSON") == null?"":aResultSet.getString("CONTACT_PERSON").trim();
		tGSOrganization.gs_principal_phone = aResultSet.getString("CONTACK_TEL") == null? "":aResultSet.getString("CONTACK_TEL").trim();
		//tGSOrganization.gs_principal_email = aResultSet.getString("GS_PRINCIPAL_EMAIL") == null? "":aResultSet.getString("GS_PRINCIPAL_EMAIL").trim();
		//tGSOrganization.gs_upper_orgId = aResultSet.getString("GS_UPPERORG_ID").trim();
        //tGSOrganization.gs_org_post = aResultSet.getString("GS_ORG_POST")==null?"":aResultSet.getString("GS_ORG_POST").trim();
		tGSOrganization.gs_is_stock= aResultSet.getString("STATUS");
        return tGSOrganization;
	}

    /**
     * @return Returns the gs_org_addr.
     */
    public String getGs_org_addr() {
        return this.gs_org_addr;
    }

    /**
     * @param aGs_org_addr The gs_org_addr to set.
     */
    public void setGs_org_addr(String aGs_org_addr) {
        this.gs_org_addr = aGs_org_addr;
    }

    /**
     * @return Returns the gs_org_fax.
     */
    public String getGs_org_fax() {
        return this.gs_org_fax;
    }

    /**
     * @param aGs_org_fax The gs_org_fax to set.
     */
    public void setGs_org_fax(String aGs_org_fax) {
        this.gs_org_fax = aGs_org_fax;
    }

    /**
     * @return Returns the gs_org_id.
     */
    public String getGs_org_id() {
        return this.gs_org_id;
    }

    /**
     * @param aGs_org_id The gs_org_id to set.
     */
    public void setGs_org_id(String aGs_org_id) {
        this.gs_org_id = aGs_org_id;
    }

    /**
     * @return Returns the gs_org_name.
     */
    public String getGs_org_name() {
        return this.gs_org_name;
    }

    /**
     * @param aGs_org_name The gs_org_name to set.
     */
    public void setGs_org_name(String aGs_org_name) {
        this.gs_org_name = aGs_org_name;
    }

    /**
     * @return Returns the gs_org_phone.
     */
    public String getGs_org_phone() {
        return this.gs_org_phone;
    }

    /**
     * @param aGs_org_phone The gs_org_phone to set.
     */
    public void setGs_org_phone(String aGs_org_phone) {
        this.gs_org_phone = aGs_org_phone;
    }

    /**
     * @return Returns the gs_org_post.
     */
    public String getGs_org_post() {
        return this.gs_org_post;
    }

    /**
     * @param aGs_org_post The gs_org_post to set.
     */
    public void setGs_org_post(String aGs_org_post) {
        this.gs_org_post = aGs_org_post;
    }

    /**
     * @return Returns the gs_principal_email.
     */
    public String getGs_principal_email() {
        return this.gs_principal_email;
    }

    /**
     * @param aGs_principal_email The gs_principal_email to set.
     */
    public void setGs_principal_email(String aGs_principal_email) {
        this.gs_principal_email = aGs_principal_email;
    }

    /**
     * @return Returns the gs_principal_name.
     */
    public String getGs_principal_name() {
        return this.gs_principal_name;
    }

    /**
     * @param aGs_principal_name The gs_principal_name to set.
     */
    public void setGs_principal_name(String aGs_principal_name) {
        this.gs_principal_name = aGs_principal_name;
    }

    /**
     * @return Returns the gs_principal_phone.
     */
    public String getGs_principal_phone() {
        return this.gs_principal_phone;
    }

    /**
     * @param aGs_principal_phone The gs_principal_phone to set.
     */
    public void setGs_principal_phone(String aGs_principal_phone) {
        this.gs_principal_phone = aGs_principal_phone;
    }

    /**
     * @return Returns the gs_upper_orgId.
     */
    public String getGs_upper_orgId() {
        return this.gs_upper_orgId;
    }

    /**
     * @param aGs_upper_orgId The gs_upper_orgId to set.
     */
    public void setGs_upper_orgId(String aGs_upper_orgId) {
        this.gs_upper_orgId = aGs_upper_orgId;
    }

    /**
     * @return 返回变量gs_is_stock的值.
     */
    public String getGs_is_stock() {
        return this.gs_is_stock;
    }

    /**
     * @param aGs_is_stock 设定变量gs_is_stock的值.
     */
    public void setGs_is_stock(String aGs_is_stock) {
        this.gs_is_stock = aGs_is_stock;
    }

}
